import 'package:flutter_enjoy_plus/constants/index.dart';
import 'package:flutter_enjoy_plus/utils/RequestDio.dart';

Future<dynamic> getHouseListAPI() => requestDio.get(HTTP_PATH.HOUSE_LIST);

Future<dynamic> submitAPI(data) =>
    requestDio.post(HTTP_PATH.HOUSE_LIST, data: data);

Future<dynamic> getHouseDetailAPI(id) => requestDio.get(
      '${HTTP_PATH.HOUSE_LIST}/$id',
    );

Future<dynamic> delDetailAPI(id) => requestDio.delete(
      '${HTTP_PATH.HOUSE_LIST}/$id',
    );
